﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using BrewXML.Core.Data;
using BrewXML.Core.ViewModels;
using BrewXML.WindowsPhone.Data;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace BrewXML.WindowsPhone
{
    public partial class Page2 : PhoneApplicationPage
    {
        #region View Model
        public HomePageViewModel ViewModel
        {
            get
            {
                return this.DataContext as HomePageViewModel;
            }
        }
        #endregion

        public void init()
        {
            var list = XMLClass.Load<List<HOP>>("Hops.xml", "HOPS");
            ViewModel.Data.HOPS = list.Result;
        }

        public Page2()
        {
            InitializeComponent();
            init();
        }
    }
}